#ifndef MYREQUESTHANDLER_H
#define MYREQUESTHANDLER_H
#include "bot.h"
#include "httprequesthandler.h"
#include <QTextCodec>
using namespace stefanfrings;

class MyRequestHandler: public HttpRequestHandler
{
    Q_OBJECT
public:
    MyRequestHandler(QObject* parent=nullptr);
    void service(HttpRequest& request, HttpResponse& response);

    void ResponseBot(HttpRequest& request, HttpResponse& response);
    void ResponseKeys(HttpRequest& request, HttpResponse& response);
    void ResponsePatterns(HttpRequest& request, HttpResponse& response);
	void ResponseContacts(HttpRequest& request, HttpResponse& response);

private:

	Bot* bot;
	QTextCodec *codec;
};

#endif // MYREQUESTHANDLER_H